package gg;

import java.util.Arrays;

public class zuoye0903 {
    public static void main(String[] args) {
        int[] arr = {40,50,67,45,99,55,47};

     changeArr(arr);
    }

    public static void changeArr(int[] arr) {

        int num = arr[1];
        arr[1] = arr[5];
        arr[5] = num;
        System.out.println(Arrays.toString(arr));
        return;
    }
}
